package Modele;

/**
 * *********************************************************************
 * Module: Station.java Author: 20cent Purpose: Defines the Class Station
 **********************************************************************
 */
/**
 * @pdOid 2c5f5eac-ab72-459b-b8e0-a83fbf6ce0d5
 */
public class Station extends AbstractModel{

    /**
     * @pdOid aae53da2-8729-4a40-a92e-4e7d55d0244b
     */
    private int mId;
    /**
     * @pdOid 14be9c4b-0c6f-46fa-a86c-2e478b0a5c64
     */
    private java.lang.String mCoordonees;
    /**
     * @pdOid db4f4241-aa56-423f-aba0-a2c04f31d564
     */
    private int mCapacite;

    public Station() {
        super();
    }

    public Station(String mCoordonees, int mCapacite) {
        super();
        
        this.mCoordonees = mCoordonees;
        this.mCapacite = mCapacite;
    }

    public Station(int mId, String mCoordonees, int mCapacite) {
        super();
        this.mId = mId;
        this.mCoordonees = mCoordonees;
        this.mCapacite = mCapacite;
    }

    /**
     * @pdOid b8862e92-0d08-496b-8862-10ce92af0c5c
     */
    public int getMCapacite() {
        return mCapacite;
    }

    /**
     * @param newMCapacite
     * @pdOid fe1e2050-9c56-4483-8a0a-e28a1b3af20d
     */
    public void setMCapacite(int newMCapacite) {
        mCapacite = newMCapacite;
    }

    /**
     * @pdOid 17b3b68f-a8dc-4323-ba3e-908345b21267
     */
    public java.lang.String getMCoordonees() {
        return mCoordonees;
    }

    /**
     * @param newMCoordonees
     * @pdOid 7aee4d5e-19f8-403e-a9d0-3aa0c1dae8b5
     */
    public void setMCoordonees(java.lang.String newMCoordonees) {
        mCoordonees = newMCoordonees;
    }

    /**
     * @pdOid cb8c756f-283b-4d30-aa0d-4d2f8b7c86bc
     */
    public int getMId() {
        return mId;
    }

    /**
     * @param newMId
     * @pdOid b1299999-fcb5-4dbb-86bb-67dc74b39591
     */
    public void setMId(int newMId) {
        mId = newMId;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof Station){
            return mId == ((Station)obj).getMId();
        }else{
            return false;
        }
    }
    
    
}